package com.smarth.zhizulian.utils.listhelper.impl.model;

import com.smarth.zhizulian.utils.listhelper.inter.IDataModel;
import com.smarth.zhizulian.utils.listhelper.inter.ResponseSender;

/**
 * Created by 18865 on 2018/1/16.
 */

public abstract class PageDataModel<T> implements IDataModel<T> {
    @Override
    public void refresh(ResponseSender<T> responseSender) {
        fetch(responseSender);
    }

    @Override
    public void loadMore(ResponseSender<T> responseSender) {
        fetch(responseSender);
    }

    @Override
    public boolean hasMore() {
        return true;
    }

    public abstract void fetch(ResponseSender<T> responseSender);
}
